package com.czy.workflow.core.service.dao;

import com.czy.workflow.core.model.FlowBranch;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface BranchRepository extends JpaRepository<FlowBranch, String> {
    @Query("select b from FlowBranch b where b.sourceNodeId=?1")
    List<FlowBranch> findNoteBranches(String sourceId);
}
